//
//  DMSyndromeCell.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMSyndromeCell.h"

@implementation DMSyndromeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
    }
    
    return self;
}


- (void)setModel:(DMSyndromeModel *)model
{
    _model = model;
    _lab.text = model.complication_name;
}


#pragma mark - 搭建界面
- (void)setupUI
{
    UILabel *lab = [UILabel cz_labelWithText:@"没救" fontSize:18 color:[UIColor blackColor]];
    
    [self.contentView addSubview:lab];
    
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self.contentView);
        make.left.equalTo(self.contentView).offset(5);
        
    }];
    
    _lab = lab;
}

@end
